import './App.css';
import React from 'react'
import { Route, Switch, Redirect,BrowserRouter } from 'react-router-dom';
import Login from './pages/login/login';
import Home from "./pages/home/home";
import { ConfigProvider } from 'antd'
// import Shop from './pages/shop/Shop'
function App() {
  return (
    <ConfigProvider>
      <BrowserRouter>
      <Switch>
        {/* 重定向到登录页 */}
        <Redirect from="/" exact to="/login" />
        <Route path="/login" component={Login} />
        <Route path="/home" component={Home} />
        {/* <Route path="/shop" component={Shop} /> */}
      </Switch>
      </BrowserRouter>
    </ConfigProvider>
  );
}

export default App;
